ff3eea1aa7024a87be2e3891b1b21209b0a222c2,webanno-brat/src/main/java/de/tudarmstadt/ukp/clarin/webanno/brat/annotation/component/AnnotationDetailEditorPanel.java,AnnotationDetailEditorPanel,autoScroll,#JCas#ActionContext#boolean#,966

Before Change


                    aBModel.getSentenceEndOffset());
            // Calculate the first sentence in the window in such a way that the annotation
            // currently selected is in the center of the window
            int address = findWindowStartCenteringOnSelection(jCas, sentence,
                    aBModel.getSelection().getBegin(), aBModel.getProject(), aBModel.getDocument(),
                    aBModel.getPreferences().getWindowSize());
            // Move to it
            aBModel.setSentenceAddress(address);
        }

After Change


                    aBModel.getSentenceEndOffset());
            // Calculate the first sentence in the window in such a way that the annotation
            // currently selected is in the center of the window
            sentence = findWindowStartCenteringOnSelection(jCas, sentence,
                    aBModel.getSelection().getBegin(), aBModel.getProject(), aBModel.getDocument(),
                    aBModel.getPreferences().getWindowSize());
            // Move to it
            aBModel.setFirstVisibleSentence(sentence);
        }